package com.gln.bloger.pojos;
/**
 * the user&role module
 * @author renxj
 *
 */
public class UserRole extends Entity{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String id;
	/**
	 * user object
	 */
	private User user;
    /**
     * role object
     */
	private Role role;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Role getRole() {
		return role;
	}
	public void setRole(Role role) {
		this.role = role;
	}
	@Override
	public void setData(Entity other) {
		UserRole otherUserRole = (UserRole) other;
		this.id = otherUserRole.getId();
		this.role = otherUserRole.getRole();
		this.user = otherUserRole.getUser();		
	}
    
}
